import { Entity, Unique, AutoIncrementId, Link, Name, PrimaryUuid, Title } from "../utils";

@Entity({ name: 'sys_icon' })
@Unique('SYS_ICON_PRE_SVG_NAME', ['svg_name', 'pre'])
export class SysIcon {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    icon_id: number;

    @Name()
    svg_name: string;

    @Title()
    svg_title: string;

    @Link()
    svg_path: string;

    @Name({ default: 'icon' })
    pre: string;
}